package rdc.simonalisa.main;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class BeanFactory {

	static ApplicationContext ctx;
	
	public static void initBeanFactory(){
		ctx = new FileSystemXmlApplicationContext("applicationContex.xml");
	}
	
	public static synchronized Object getBean(String classname){
		return ctx.getBean(classname);
	}
	
}
